import HTTP from '../utils/http';
import { API } from '../config/config';
import { Message } from 'element-ui';
import { axiosMessageShow, findAssign } from '@/utils/tools';
const ESSAY = API.TYPE;
export default class EssayClass extends HTTP{
    findType(id) {
      return new Promise((resolve)=>{
        this.axiosPost({
            url:ESSAY.TYPE_GET,
            data:id,
            success(data){
                
                resolve(data.data)
            },error(error){
                Message({
                    message:error,
                    type:'error'
                })
            }
        })
      })  
    }
    destr


}